package com.tm.d3_inner_class;

/**
 * 2024/5/21 Cjj 成员内部类  17:13
 */
public class Outer {
    private int age=99;
    public static String a;


    public class Inner{
          private String name;
          private int age=88;
         // public static String schoolNamel; JDK 16才开始支持的

          public void test(){
              System.out.println(age);
              System.out.println(a);

              int age=66;
              System.out.println(age);
              System.out.println(this.age);
              System.out.println(Outer.this.age);

          }

          public String getName(){
              return name;
          }

          public void setName(String name){
              this.name=name;
          }
    }

      public void test2(){
        System.out.println(age);
        System.out.println(a);
      }
}
